<template>
  <div class="hello">
    <h1>建立通讯</h1>
    <el-button @click="login()">登录</el-button>
    <el-card> </el-card>
  </div>
</template>

<script>
// import { encode, decode } from '@/assets/js/base64.js'
import { createSocket } from '../assets/js/websocket.js'
export default {
  data() {
    return {}
  },
  // computed: {
  //   tableData() {
  //     return this.$store.state.data
  //   }
  // },
  methods: {
    login() {
      createSocket('ws://175.27.243.236:6060/test')
    }
  }
}
</script>
<style scoped></style>
